<?php /* Smarty version Smarty-3.1.6, created on 2012-11-27 00:31:17
         compiled from "./index/Tpl\Index\categray.html" */ ?>
<?php /*%%SmartyHeaderCode:1942150b3972c0547f8-01835090%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b751fb12b45a1a7dfa77e31efd138d096bae5fdf' => 
    array (
      0 => './index/Tpl\\Index\\categray.html',
      1 => 1353947474,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1942150b3972c0547f8-01835090',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_50b3972c1fa69',
  'variables' => 
  array (
    'class' => 0,
    'item' => 0,
    'classId' => 0,
    'points' => 0,
    'userName' => 0,
    'subClass' => 0,
    'items' => 0,
    'currentPage' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50b3972c1fa69')) {function content_50b3972c1fa69($_smarty_tpl) {?><link type="text/css" rel="stylesheet" href="/assets/css/style.css"/>
<script type="text/javascript" src="/assets/js/jquery.js"></script>
<script type="text/javascript" src="/assets/js/jquery.SuperSlide.js"></script>
<body>
<div id="header" style="width:950px;margin:0 auto;">
	<!--<div class="wrapper"><a href="#"><img src="/assets/images/logo.png" /></a></div>-->	
</div>
<div id="nav" style="width:950px;margin:0 auto;">
	<div class="wrapper">
		<div class="left">
			<a href="/index.php" class="b red">首页</a><span>-</span>
			<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['class']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
			<a href="/index.php?a=categray&classId=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
" <?php if ($_smarty_tpl->tpl_vars['classId']->value==$_smarty_tpl->tpl_vars['item']->value['id']){?>class="b"<?php }?> > <?php echo $_smarty_tpl->tpl_vars['item']->value['className'];?>
</a>
			<?php } ?>
			
			<!--<a href="#" class="b">团购</a><a href="#" class="b">兑换</a>-->
		</div>
		<div class="right">
			<p><span>您当前拥有<b class="points"><?php echo $_smarty_tpl->tpl_vars['points']->value;?>
</b>积分</span><a href="#"><?php echo $_smarty_tpl->tpl_vars['userName']->value;?>
</a></p>
			<a href="#" class="btn">签到</a>
		</div>
		<div class="clearit"></div>
	</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['subClass']->value){?>

<div id="subNav">
	<div class="wrapper">
		<ul>
		
			<li class="itemA">
			<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['subClass']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
			<a <?php if ($_smarty_tpl->tpl_vars['classId']->value==$_smarty_tpl->tpl_vars['item']->value['id']){?>class="b"<?php }?> href="/index.php?a=categray&classId=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
" > <?php echo $_smarty_tpl->tpl_vars['item']->value['className'];?>
</a>
			
			<?php } ?>
			</li>
		
		</ul>
	</div>
</div>

<?php }?>

<div id="categray">
	<!--<div class="itemA">
		<ul>
			<h2><a href="#">卧室</a></h2>
			<li>
				<a href="#"><img src="/assets/images/p7.jpg" /></a>
				<a href="#" class="orange">北欧</a>
				<a href="#">日式</a>
				<a href="#">古典</a>
				<a href="#">公主风</a>
				<a href="#">简约</a>
				<a href="#">zakka</a>
				<a href="#">复古</a>
				<a href="#">韩式</a>
			</li>
			<li>
				<a href="#"><img src="/assets/images/p8.jpg" /></a>
				<a href="#">花器</a>
				<a href="#">花架</a>
				<a href="#">玻璃花瓶</a>
				<a href="#">陶瓷花瓶</a>
				<a href="#">园艺工具</a>
				<a href="#">植物</a>
			</li>
		</ul>
		<ul>
			<h2><a href="#">装扮</a></h2>
			<li>
				<a href="#"><img src="/assets/images/p7.jpg" /></a>
				<a href="#">北欧</a>
				<a href="#">日式</a>
				<a href="#">古典</a>
				<a href="#">公主风</a>
				<a href="#">简约</a>
				<a href="#">zakka</a>
				<a href="#">复古</a>
				<a href="#">韩式</a>
			</li>
			<li>
				<a href="#"><img src="/assets/images/p8.jpg" /></a>
				<a href="#">花器</a>
				<a href="#">花架</a>
				<a href="#">玻璃花瓶</a>
				<a href="#">陶瓷花瓶</a>
				<a href="#">园艺工具</a>
				<a href="#">植物</a>
			</li>
		</ul>
		<ul>
			<h2><a href="#">零食</a></h2>
			<li>
				<a href="#"><img src="/assets/images/p7.jpg" /></a>
				<a href="#">北欧</a>
				<a href="#">日式</a>
				<a href="#">古典</a>
				<a href="#">公主风</a>
				<a href="#">简约</a>
				<a href="#">zakka</a>
				<a href="#">复古</a>
				<a href="#">韩式</a>
			</li>
			<li>
				<a href="#"><img src="/assets/images/p8.jpg" /></a>
				<a href="#">花器</a>
				<a href="#">花架</a>
				<a href="#">玻璃花瓶</a>
				<a href="#">陶瓷花瓶</a>
				<a href="#">园艺工具</a>
				<a href="#">植物</a>
			</li>
		</ul>
		<ul>
			<h2><a href="#">美妆</a></h2>
			<li>
				<a href="#"><img src="/assets/images/p7.jpg" /></a>
				<a href="#">北欧</a>
				<a href="#">日式</a>
				<a href="#">古典</a>
				<a href="#">公主风</a>
				<a href="#">简约</a>
				<a href="#">zakka</a>
				<a href="#">复古</a>
				<a href="#">韩式</a>
			</li>
			<li>
				<a href="#"><img src="/assets/images/p8.jpg" /></a>
				<a href="#">花器</a>
				<a href="#">花架</a>
				<a href="#">玻璃花瓶</a>
				<a href="#">陶瓷花瓶</a>
				<a href="#">园艺工具</a>
				<a href="#">植物</a>
			</li>
		</ul>
	</div>-->


	<div class="itemB" id="wook" style="height:500px">
		<ul class="itemContainer">
			<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['items']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
			<li class="waterItem" style="position:absolute;display:list-item;">
				<a href="/index.php?a=product&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['item']->value['pic_url'];?>
" height="220px" /></a>
				<p class="p1"><a href="/index.php?a=product&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</a></p>
				<div class="sns-widget ju-like" data-like='{
    "text":"喜欢",
    "skinType":1,
    "type":"3",
    "key":"{$item.item_id}>",
    "client_id":"170429",
	"shareparams":{
	"pic":"{$item.pic_url}>",
	"client_id":"19",
	"comment":"这个宝贝我蛮喜欢的哦!~~大家来围观下！~",
	"type":"webpage",
	"title":"{$item.title}",
	"key":"http://ju.uz.taobao.com/index.php?a=product&id={$item.id}>"}}'></div>
	<div class="hidden"><?php echo $_smarty_tpl->tpl_vars['item']->value['item_id'];?>
</div>
				<p class="p2"><?php echo $_smarty_tpl->tpl_vars['item']->value['shop'];?>
</p>
				<p class="p3"><img src="/assets/images/p6.jpg" />糖糖：是我喜欢的感觉诶...</a></p>
			</li>
			<?php } ?>
			
		</ul>
	</div>
	<div class="hidden page"><?php echo $_smarty_tpl->tpl_vars['currentPage']->value;?>
</div>
	<!--<div align='center' class="itemF" style="height:35px;width:950px;font-size:30px;">加载更多。。。。</div>-->
	<div class="pagerlist">
	<?php echo $_smarty_tpl->tpl_vars['page']->value;?>

	</div>
</div>
</div>

<!-- Include the plug-in -->
<script src="/assets/js/jquery.wookmark.js"></script>
<!-- Once the page is loaded, initalize the plug-in. -->
<script type="text/javascript">
    var handler = null;
    
    // Prepare layout options.
    var options = {
      autoResize: true, // This will auto-update the layout when the browser window is resized.
      container: $('#wook'), // Optional, used for some extra CSS styling
      offset: 23, // Optional, the distance between grid items
      itemWidth: 220 // Optional, the width of a grid item
    };
    
    /**
     * When scrolled all the way to the bottom, add more tiles.
     */
    function onScroll(event) {
      // Check if we're within 100 pixels of the bottom edge of the broser window.
      var closeToBottom = ($(window).scrollTop() + $(window).height() > $(document).height() - 100);
      if(closeToBottom) {
        // Get the first then items from the grid, clone them, and add them to the bottom of the grid.
        var items = $('#wook ul li');
        var firstTen = items.slice(0, 10);
        $('#wook ul').append(firstTen.clone());
        
        // Clear our previous layout handler.
        if(handler) handler.wookmarkClear();
        
        // Create a new layout handler.
        handler = $('#wook ul li');
        handler.wookmark(options);
      }
    };
  
    $(document).ready(function() {
      // Capture scroll event.
      $(document).bind('scroll', onScroll);
      // Call the layout function.
      handler = $('#wook ul li');
      handler.wookmark(options);
    });
 </script>
</body>
</html>




<?php }} ?>